import java.util.*;class Main{public static void main(String[] r){Scanner c=new Scanner(System.in);while(c.hasNext())System.out.println(c.nextBigDecimal().pow(c.nextInt()).stripTrailingZeros().toPlainString().replaceAll("^0",""));}}